
objs-y := timer.o
objs-$(CONF_S3C2410) += pwm_s3c24xx.o
objs-$(CONF_S3C2440) += pwm_s3c24xx.o
objs-$(CONF_AT91SAM9261) += pit_at91sam926x.o
objs-$(CONF_AT91SAM9263) += pit_at91sam926x.o

OBJS_C = $(objs-y)
SRCS_C := $(OBJS_C:.o=.c)


all: $(BUILT_IN_OBJ)

$(BUILT_IN_OBJ): $(OBJS_C)
	$(LD) $(LDFLAGS) -r $^ -o $@ 

$(OBJS_C): $(SRCS_C)
	$(CC) $(CFLAGS) -c $(SRCS_C)

clean :
	@rm -vf *.o

